﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace Slja.IDAL
{
    public interface IPrjDesign
    {
        /// <summary>
        /// 是否已经存在项目ID
        /// </summary>
        /// <param name="PrjID"></param>
        /// <returns></returns>
        bool Exist(string PrjID);
        /// <summary>
        /// 取得项目列表
        /// </summary>
        /// <returns></returns>
        DataTable GetPrjData(string strWhere);
        /// <summary>
        /// 增加一条数据,及其子表数据
        /// </summary>
        int Add(Slja.Model.PrjMain model);
        /// <summary>
        /// 更新一条数据
        /// </summary>
        void Update(Slja.Model.PrjMain model);
       

        /// <summary>
        /// 删除一条数据，及子表所有相关数据
        /// </summary>
        bool Delete(int ID);
        
        /// <summary>
        /// 删除一条数据
        /// </summary>
        bool DeleteList(string IDlist);

        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        Slja.Model.PrjMain GetModel(int ID);

    }
}
